package com.wxzz.elearing.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class WxUserExamHistory extends BaseEntity {

    @ApiModelProperty(value = "考试id")
    private Long examId;

    @ApiModelProperty(value = "用户id")
    private Long wxUserId;

    @ApiModelProperty(value = "总分")
    private BigDecimal allScore;

    @ApiModelProperty(value = "0-未通过 1-通过")
    private Integer isPass;

    @ApiModelProperty(value = "使用时间")
    private String useTime;

    @ApiModelProperty(value = "题目json")
    private String topicJson;

    @TableField(exist = false)
    @ApiModelProperty(value = "题目数量")
    private Integer topicNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "封面图")
    private String examBanner;

    @TableField(exist = false)
    @ApiModelProperty(value = "考试名称")
    private String examName;

    @TableField(exist = false)
    @ApiModelProperty(value = "预计时间")
    private LocalDateTime scheduledTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "考试测评试题")
    private List<CurriculumSectionTopic> curriculumSectionTopics;
}
